//
//  ViewController.m
//  Erc_Day01_homework_02
//
//  Created by aaaaaa on 16/6/2.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    UIView *backView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 375, 667)];
    backView.backgroundColor = [UIColor grayColor];
    [self.view addSubview:backView];
    
    UIColor *color = [UIColor greenColor];
    
    UIView *leftTop = [[UIView alloc] initWithFrame:CGRectMake(50, 150, 80, 30)];
    leftTop.backgroundColor = color;
    [backView addSubview:leftTop];
    
    UIView *rightTop = [[UIView alloc] initWithFrame:CGRectMake(180, 150, 150, 30)];
    rightTop.backgroundColor = color;
    [backView addSubview:rightTop];
    
    UIView *leftMiddle = [[UIView alloc] initWithFrame:CGRectMake(50, 220, 80, 30)];
    leftMiddle.backgroundColor = color;
    [backView addSubview:leftMiddle];
    
    UIView *rightMiddle = [[UIView alloc] initWithFrame:CGRectMake(180, 220, 150, 30)];
    rightMiddle.backgroundColor = color;
    [backView addSubview:rightMiddle];
    
    UIView *leftBottom = [[UIView alloc] initWithFrame:CGRectMake(100, 300, 60, 30)];
    leftBottom.backgroundColor = color;
    [backView addSubview:leftBottom];
    
    UIView *rightBottom = [[UIView alloc] initWithFrame:CGRectMake(220, 300, 60, 30)];
    rightBottom.backgroundColor = color;
    [backView addSubview:rightBottom];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
